/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pacificlms.Verifiable.Database;
//likely to change!!!!!!!!!!!!!!

import pacificlms.Verifiable.*;

/**
 *
 * @author Brian Hume
 */
/*public enum ResourceType {
    
    BlueRayDisc("Blue Ray Disc", "blue ray disc"), 
    Book("Book", "book"), 
    DVD("DVD", "dvd"), 
    Magazine("Magazine", "magazine"), 
    MusicCD("Music CD", "music cd"), 
    OtherResource("Other", "other resource"), 
    OtherTape("Tape", "other tape"), 
    Paper("Paper", "paper"), 
    Software("Software", "software"), 
    VHSCassette("VHS Cassette", "vhs cassette");
    
    private String ApplicationValue;
    private String DBValue;
    private ResourceType(String ApplicationValue, String DBValue)
    {
        this.ApplicationValue = ApplicationValue;
        this.DBValue = DBValue;
    }
}
*/
public class ResourceType extends VerifiableObject {
    
    @Override
    public String TableName() {
        return "ResourceType";
    }
    
    
    private String Type;
    @VerifyAnnotation(ApplicationName="Type", DBName="Type",  Type=TypeEnum.STRING, Length=30, PrimaryKey=true)
    public String Type(String value)
    {
        return Type = StandardProcess(Type, value);
    }
    
    
    //Do not need to worry about verification since CheckOutRule are not be saved by the program
    @Override
    protected boolean ExtraVerification()
    {
        return true;
    }
    
    
    @Override
    public String toString()
    {
        return Type;
    }
}